package cn.edu.nju.software.service.intf;

import java.sql.SQLException;
import java.util.List;

import cn.edu.nju.software.bean.storage.Admin;
import cn.edu.nju.software.bean.storage.User;

public interface AdminService {
	/**
	 * 管理员登录
	 */
	public abstract Admin login(String signInName, String password) throws SQLException;
	
	/**
	 * 修改管理员信息
	 */
	public abstract void modifyAdminInfo(Admin admin) throws SQLException;
	
	/**
	 * 根据用户登录名或姓名搜索用户
	 */
	public abstract List<User> searchUsers(int key, String value) throws SQLException;
	
	/**
	 * 操作用户
	 */
	public abstract void operateUser(String signInName, int operateCode) throws SQLException;
}
